<?
////////////////////////////////////////////////////
// Function: make_safe()
// Function to remove superfluous CDATA and invaid
// strings from the incoming XML and convert quotes
// into proper quotes.
////////////////////////////////////////////////////
function make_safe($string) {
    $string = preg_replace('#<!\[CDATA\[.*?\]\]>#s', '', $string);
    $string = strip_tags($string);
    $string = htmlentities($string, ENT_NOQUOTES, 'UTF-8', false);
    return $string;
}
// END make_safe

function searchform() {
echo "
	<form action=\"search.php\" method=\"post\">
            <input type=\"text\" name=\"show\" value=\"Search for Show\" onFocus=\"if (this.value=='Search for Show') this.value='';\">
            <input type=\"submit\" value=\"Search\">
  </form>";
}


function loadheader() {
	include "style/header.html";
}

function loadfooter() {
	include "style/footer.html";
}

function loadletters() {
	include "style/letters.html";
}

?>